package com.happyfamily.springboot.crowdsourcingplatform.service.pan;

import com.happyfamily.springboot.crowdsourcingplatform.base.result.Results;
import com.happyfamily.springboot.crowdsourcingplatform.model.Orders;

/**
 * @Author Administrator
 * @create 2020/02/28 11:15
 */
public interface OrderService
{


	/**
	 * 添加购买订单
	 * @param wid
	 * @param account
	 * @return
	 */
	int addOrder(String wid, String account);

	/**
	 * 获取雇主的购买订单
	 * @param offset
	 * @param limit
	 * @param account
	 * @return
	 */
	Results<Orders> getOrderListByPage(Integer offset, Integer limit, String account);


	/**
	 * 根据订单id插入order_from
	 * @param oid
	 */
	void addOrderForm(Integer oid);
}
